package com.derbysoft.core.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ExecutorServiceFactoryBean {
    private int threadCount;

    public ExecutorService getExecutorService() {
        return Executors.newFixedThreadPool(threadCount);
    }

    public void setThreadCount(int threadCount) {
        this.threadCount = threadCount;
    }
}
